package com.headmaster.wap.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.headmaster.wap.domain.MesgInfo;
import com.headmaster.wap.service.IVerifyCodeService;

@Controller
public class VerifyCodeController {
	
	@Autowired
	private IVerifyCodeService verifyCodeService;
	
	@RequestMapping("queryVerifyCode")
	public ModelAndView queryVerify(ModelMap model,String phoneNumber){
		List<MesgInfo> list = verifyCodeService.queryVerifyCode(phoneNumber);		
		model.put("list", list);
		return new ModelAndView("showVerifyCode");
	}
}
